const qiniuUploadUrl = 'https://up-z2.qbox.me';

function uploadQiniu(file, token, success, failure) {
  wx.uploadFile({
    url: qiniuUploadUrl,
    filePath: file,
    name: 'file',
    formData: {
      token: token
    },
    success,
    fail: failure
  });
}

module.exports = {
  uploadQiniu
}